package com.small.sentinel.slots.block.authority;

import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class AuthorityRuleManager {

    private static volatile Map<String, Set<AuthorityRule>> authorityRules = new ConcurrentHashMap<>();


    static Map<String, Set<AuthorityRule>> getAuthorityRules() {
        return authorityRules;
    }

    static void addAuthorityRule(String resourceName,Set<AuthorityRule> ruleSet){
        authorityRules.put(resourceName,ruleSet);
    }
}
